package com.iran.composite.test;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
abstract class Company {
    private String name;
    private Integer code;

    public abstract void add(Company company);
    public abstract void del(Company company);
    public abstract void display(int depth);//显示 （深度）深度
    public abstract void lineDuty();//履行职责
}
